package com.todod.base.module.infra.controller.admin.baseofficialletter.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.todod.base.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.todod.base.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 公函分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BaseOfficialLetterPageReqVO extends PageParam {

    @Schema(description = "主题")
    private String theme;

    @Schema(description = "备注", example = "测试")
    private String remark;

    @Schema(description = "创建时间（发起时间）")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "发布时间（审批通过时间）")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] publishTime;

    @Schema(description = "状态(草稿:0；审核中:1；审核通过:2；审核驳回:3)", example = "1")
    private Integer status;

    @Schema(description = "主题")
    private Long userId;

    @Schema(description = "判断标志")
    private String flag;

}